﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Order.aspx.cs" Inherits="Pages_Order" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" Runat="Server">
<script src="../Scripts/JScript.js" type="text/javascript"></script>
<asp:Panel ID="pnOrder" runat="server">    
    <div class='dv_sp'>
        <div class="dv_order">
            <div class="dv_product_order">
                <table cellpadding="0px" cellspacing="0px" class="TableView">
                    <tr class="trHeader">
                        <th>
                        </th>
                        <th class="tdright">
                            Tên sản phẩm
                        </th>
                        <th class="tdright">
                            Giá
                        </th>
                        <th class="tdright">
                            Số lượng
                        </th>
                        <th class="tdright">
                            Thành tiền
                        </th>
                        <th>
                            Chức năng
                        </th>
                    </tr>
                    <asp:Repeater ID="rptOrder" runat="server" onitemcommand="rptOrder_ItemCommand">
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <asp:Label ID="lblproductid" Visible="false" runat="server" Text='<%# Eval("ProductID") %>' ></asp:Label>
                                </td>
                                <td class="tdright">
                                    <asp:Label ID="lblProductName" Text='<%# Eval("ProductName") %>' runat="server"/>
                                    
                                </td>
                                <td class="tdright">
                                    <asp:Label ID="lblprice" runat="server" Text='<%#Format_Price(Eval("Price").ToString())%>' CssClass="txt_right"></asp:Label>
                                </td>
                                <td align="center" class="tdright">
                                    <asp:TextBox ID="txtquantity" CssClass="txt_right" Width="50px" Text='<%# Eval("Quantity")%>' runat="server" onkeypress="return onlyNumbers();" />
                                </td>
                                <td class="tdright">
                                    <asp:Label ID="lbltotal" runat="server" Text='<%#Format_Price(Eval("Total").ToString()) %>' CssClass="txt_right"></asp:Label>
                                </td>
                                <td align="center" class="trOdd">
                                    <asp:ImageButton ID="imgbtncapnhat" ToolTip="Cập nhật" ImageUrl="~/Styles/Images/refresh.png"
                                        CommandArgument='<%# Eval("ProductID") %>' CommandName="Update" runat="server" />
                                    <asp:ImageButton ID="imgbtnremove" ToolTip="Hủy bỏ" ImageUrl="~/Styles/Images/delete.png"
                                        CommandArgument='<%# Eval("ProductID") %>' CommandName="Delete" runat="server" />
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
            </div>
            <div class="dv_tinhtien">
                <asp:Label ID="lbltongtien" runat="server" Text=""></asp:Label></div>
            <div class="dv_control">
                <asp:ImageButton ID="btnmuatiep" ImageUrl="/Styles/Images/tieptucmuahang.jpg" 
                    runat="server" onclick="btnmuatiep_Click2"/>
                <asp:ImageButton ID="btndathang" ImageUrl="/Styles/Images/thanhtoan.jpg" 
                    runat="server" onclick="btndathang_Click" />
            </div>
        </div>
    </div>
    </asp:Panel>
    <asp:Panel ID="Successfull" runat="server">
    <br />
        Bạn đã đặt hàng thành công, chúng tôi sẽ liên hệ với bạn trong thời gian sớm nhất!!
    </asp:Panel>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="footer" Runat="Server">
</asp:Content>

